# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=Test-Simple
pkgname=perl-${_realname}
pkgver=1.302122
pkgrel=1
pkgdesc="Basic utilities for writing tests"
arch=('any')
url="http://search.cpan.org/dist/Test-Simple"
groups=('perl-modules')
depends=('perl')
license=('GPL' 'PerlArtistic')
source=("https://www.cpan.org/authors/id/E/EX/EXODIST/${_realname}-${pkgver}.tar.gz")
sha256sums=('f5fd88267b321147fcacece2e8229df6ee9e6238e3193e740030efc50e38f584')

prepare() {
  cd "${srcdir}/${_realname}-${pkgver}"
}

build() {
  cd "${srcdir}/${_realname}-${pkgver}"
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "${srcdir}/${_realname}-${pkgver}"
  make install DESTDIR="${pkgdir}"
}
